package com.tengju.user.domain.model.sign;

import com.tengju.user.domain.model.user.StarLevelEnum;
import com.tengju.user.domain.model.user.UserIdCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 签约情况统计明细
 *
 * @author chenhang
 * @Date 2021/1/11
 */
@Getter
@AllArgsConstructor
public class SignStatisticsDetail {

    private UserIdCode idCode;
    private StarLevelEnum starLevel;
    private StarSignStepEnum signStep;
    private StarAccountTypeEnum accountType;
    private BigDecimal lastMonthMoneyOut;
    private BigDecimal thisMonthMoneyOut;
    private LocalDateTime inviteTime;

    private String mobile;
    private String name;
    private String nickname;
    private UserIdCode upperCode;
    private String upperName;
    private String upperNickname;
    private String ecId;
    private String ecName;
    private String ecNickname;
    private String secId;
    private String secName;
    private String secNickname;


    public SignStatisticsDetail(UserIdCode idCode, StarLevelEnum starLevel, StarSignStepEnum signStep,
                                StarAccountTypeEnum accountType, BigDecimal lastMonthMoneyOut,
                                BigDecimal thisMonthMoneyOut, LocalDateTime inviteTime
    ) {
        this.idCode = idCode;
        this.starLevel = starLevel;
        this.signStep = signStep;
        this.accountType = accountType;
        this.lastMonthMoneyOut = (lastMonthMoneyOut == null ? BigDecimal.ZERO : lastMonthMoneyOut);
        this.thisMonthMoneyOut = (thisMonthMoneyOut == null ? BigDecimal.ZERO : thisMonthMoneyOut);
        this.inviteTime = inviteTime;
    }


    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public void setUpperCode(UserIdCode upperCode) {
        this.upperCode = upperCode;
    }

    public void setUpperName(String upperName) {
        this.upperName = upperName;
    }

    public void setUpperNickname(String upperNickname) {
        this.upperNickname = upperNickname;
    }

    public void setEcId(String ecId) {
        this.ecId = ecId;
    }

    public void setEcName(String ecName) {
        this.ecName = ecName;
    }

    public void setEcNickname(String ecNickname) {
        this.ecNickname = ecNickname;
    }

    public void setSecId(String secId) {
        this.secId = secId;
    }

    public void setSecName(String secName) {
        this.secName = secName;
    }

    public void setSecNickname(String secNickname) {
        this.secNickname = secNickname;
    }
}
